package com.leyou.trade.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;


@Data
//cart_31,cart_32
@Document("#{@collectionNameBuilder.build()}")
public class Cart{

    //id:u31s456456456456
    @Id
    @JsonIgnore //对象转json会忽略此属性
    private String id;
    private String image;
    private Integer num;
    private Long price;
    private Long skuId;
    private String spec;
    private String title;
    @JsonIgnore
    private Long userId;
    @JsonIgnore
    private Date updateTime;
}